/**
 * Created by clown on 2016/1/17.
 */


(function($){
	//资讯标题
	if(!!window.sessionStorage.getItem("zxId")){
			var zxId = window.sessionStorage.getItem("zxId");
	}
	var viewHtml = $("#detail_view_title").html();
	var viewTpl= Handlebars.compile(viewHtml);
	var viewProject = function(){
		$.get("lt/viewpoint/detail?id=" + zxId,function(data){
			if(!data.result){
				$(".detail_cont_main_title").html(viewTpl(data.data));
			}
		});
	};
	viewProject();

	//咨询内容
	var contHtml = $("#detail_view_cont").html();
	//alert(contHtml)
	var contTpl= Handlebars.compile(contHtml);
	var contProject = function(){
		$.get("lt/viewpoint/detail?id=" + zxId,function(data){
			if(!data.result){
				$(".detail_cont_main_cont").html(contTpl(data.data));
			}
		});
	};
	contProject();

})(jQuery);